
import 'package:device_info_plus/device_info_plus.dart';

///
/// @Description
/// @Author WuJianFeng
/// @Date 2024/3/13 15:10
///

class DevicesInfo{
  DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();

  Future<String> getDeviceModel() async {
    AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
    return androidInfo.model??"";
  }

  Future<String> getDeviceManufacturer() async {
    AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
    return androidInfo.manufacturer??"";
  }

  Future<String> getDeviceSystemName() async {
    AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
    return androidInfo.version.release??"";
  }

  Future<String> getDeviceSystemVersion() async {
    AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
    return androidInfo.version.sdkInt.toString()??"";
  }

}

